package com.lxyk.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @ClassName History
 * @Description TODO
 * @Author FJQ
 * @Date 2022/10/25 9:10
 * @Version 1.0
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_history")
public class History {
    /**
     * 送水历史ID
     */
    private Integer hid;
    /**
     * 关联送水工
     */
    private Integer workerId;

    @TableField(exist = false)
    private Worker worker;
    /**
     * 关联客户
     */
    @TableField(exist = false)
    private Customer customer;

    /**
     * 送水时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date sendWaterTime;
    /**
     * 送水数量
     */
    private Integer sendWaterCount;

}
